@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './btn.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
  min-height: 870px;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.app-container {
  padding: 12px 16px 0px 16px;

  .el-tabs {
    background-color: white;
  }
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.text-center {
  text-align: center
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  margin-left: 10px;
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}

.el-tree-node__label {
  font-size: 14px;
  font-family: Source Han Sans CN, Source Han Sans CN-Regular;
  font-weight: 400;
  text-align: left;
  color: #1a253b;
}

.el-form {
  .el-input__inner {
    border-radius: 2px;
    border: 1px solid #dcdfe6;
  }


  .el-form-item__label {
    font-size: 14px;
    font-family: Source Han Sans CN, Source Han Sans CN-Regular;
    font-weight: 400;
    color: #1a253b;
  }

  .vue-treeselect__control {
    border-radius: 2px !important;
    border: 1px solid #dcdfe6 !important;
  }

  .vue-treeselect {
    line-height: 32px !important;
    margin-top: 2px;

    .vue-treeselect__control {
      height: 32px !important;
      line-height: 32px !important;

      .vue-treeselect__value-container {
        height: 32px !important;
        line-height: 32px !important;

        .vue-treeselect__single-value {
          height: 32px !important;
          line-height: 32px !important;
        }

        .vue-treeselect__placeholder {
          height: 32px !important;
          line-height: 32px !important;
        }

        .vue-treeselect__input-container {
          height: 32px !important;
          line-height: 32px !important;

          .vue-treeselect__input {
            height: 32px !important;
            line-height: 32px !important;
          }
        }
      }
    }
  }

  .vue-treeselect--has-value .vue-treeselect__input {
    height: 32px !important;
    line-height: 32px !important;
  }
}

.el-table:not(.custom-table) {
  min-height: 547px;
}

.el-table__fixed {
  min-height: 547px;
}

.el-table__fixed-right {
  min-height: 547px;
}

.custom-table .el-table__empty-block {
  min-height: 200px;
}

.el-table {
  border-top: 1px solid #dcdfe6 !important;
  border-left: 1px solid #dcdfe6 !important;
  border-right: 1px solid #dcdfe6 !important;

  .el-table__header-wrapper th {
    background-color: #f1f5fc !important;
  }

  .el-table__fixed-header-wrapper th {
    background-color: #f1f5fc !important;
  }

  .el-table__header-wrapper .el-table__header .is-leaf .cell {
    height: 25px;
    line-height: 26px;
  }

  .el-table__fixed-header-wrapper th {
    height: 46px !important;
  }

  .el-table__fixed-body-wrapper .el-table__body .el-table__row .cell {
    height: 29px;
    line-height: 29px;
    font-size: 14px;
    font-family: Source Han Sans CN, Source Han Sans CN-Regular;
    font-weight: 400;
    color: #1a253b;
  }

  th>.cell {
    font-size: 14px;
    font-family: Source Han Sans CN, Source Han Sans CN-Regular;
    color: #1a253b;
  }

  .el-table__body-wrapper .el-table__body .el-table__row .cell {
    height: 29px;
    line-height: 29px;
    font-size: 14px;
    font-family: Source Han Sans CN, Source Han Sans CN-Regular;
    font-weight: 400;
    color: #1a253b;
  }

  .el-table__body .el-table__row .fixed-width {
    height: 50px !important;
  }
}

.el-table--enable-row-hover .el-table__body tr:hover>td {
  background-color: #d8e6fc !important;
}

.el-table__body .el-table__row.hover-row td {
  background-color: #d8e6fc !important;
}

.el-table--striped .el-table__body tr.el-table__row--striped td {
  background: #F8F8F8;
}

// 列表无数据显示空数据图片
.el-table__empty-block {
  background-image: url("../image/nodata_img.png");
  background-repeat: no-repeat;
  background-position: center;
  min-height: 500px;

  // 列表无数据去掉文字
  span {
    display: none;
  }
}

//查询条件树 start
.object-tree {
  background-color: white;
  width: 224px;
}

.object-tree .el-icon-search {
  padding-left: 11px !important;
  padding-top: 16px !important;
  padding-bottom: 14px !important;
}

.object-list {
  width: calc(100% - 224px);
  padding-left: 16px;
  padding-top: 14px;
  padding-right: 16px;
}

//查询条件树 end

//查询条件列表 start
.query-panel {
  background-color: #ffffff;
  //padding-top: 33px;
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: auto 208px;

  .query-panel-filter {
    .query-form {
      padding-top: 32px;
      padding-bottom: 16px;
      padding-left: 10px;

      .el-form-item {
        margin-bottom: 16px !important;

        .el-input {
          width: 250px;
        }

        .el-input--small .el-input__inner {
          height: 34px;
          line-height: 34px;
          font-size: 14px;
          font-family: Source Han Sans CN, Source Han Sans CN-Regular;
          font-weight: 400;
          color: #1a253b;
        }

        .el-range-editor--small.el-input__inner {
          height: 34px;
        }
      }

      .el-form .vue-treeselect {
        width: 250px;
      }
    }

    .query-btn {
      padding-left: 30px;
      padding-bottom: 11px;
      margin-top: -16px;

      .el-button--mini {
        padding: 0px !important;
      }

      .c-item-btn {
        min-width: 90px;
        height: 34px;
        background: #0241b2;
        border-radius: 4px;
        color: #ffffff;
        padding: 0 10px !important;

        span {
          width: 56px;
          height: 14px;
          font-size: 14px;
          font-family: Source Han Sans CN, Source Han Sans CN-Regular;
          font-weight: 400;
          text-align: left;
          color: #ffffff;
          line-height: 12px;
        }
      }
    }

  }

  .query-search {
    display: flex;
    align-items: center;

    .query-search-btn {

      //重置
      .c-btn-reset {
        width: 80px;
        height: 34px;
        background: #f5f5f5;
        border: 1px solid #dcdfe6;
        border-radius: 5px;
        box-shadow: 1px 0px 2px 0px rgba(54, 94, 143, 0.2);
        //margin-top: 30px;
        margin-left: 64px;
        margin-right: 64px;
      }

      .c-btn-reset .el-icon-refresh:before {
        font-size: 14px;
        color: #1a253b;
      }

      .c-btn-reset span {
        font-size: 14px;
        font-family: Source Han Sans CN, Source Han Sans CN-Regular;
        font-weight: 400;
        text-align: left;
        color: #1a253b;
      }

      //搜索
      .c-btn-search {
        width: 80px;
        height: 34px;
        background: #07bf84;
        border: 1px solid #07bf84;
        border-radius: 5px;
        box-shadow: 1px 0px 2px 0px rgba(54, 94, 143, 0.2);
        margin-top: 14px;
        margin-left: 64px;
        margin-right: 64px;
      }

      .c-btn-search .el-icon-search:before {
        font-size: 14px;
        color: #ffffff;
      }

      .c-btn-search span {
        width: 28px;
        height: 14px;
        font-size: 14px;
        font-family: Source Han Sans CN, Source Han Sans CN-Regular;
        font-weight: 400;
        text-align: left;
        color: #ffffff;
        line-height: 12px;
      }
    }
  }
}

.auto-item-btn {
  height: 34px;
  background: #0241b2;
  border-radius: 4px;
  border: none;

  span {
    width: 56px;
    height: 14px;
    font-size: 14px;
    font-family: Source Han Sans CN, Source Han Sans CN-Regular;
    font-weight: 400;
    text-align: left;
    color: #ffffff;
    line-height: 12px;
  }
}

.auto-item-btn:hover {
  background: #0241b2;
}

.r-item-btn {
  background: #e0eafb;
  padding: 3px 10px 3px 11px !important;
  border-radius: 20px;
  color: #0241b2;

  span {
    font-size: 12px;
    font-weight: 400;
    font-family: Source Han Sans CN, Source Han Sans CN-Regular;
    color: #0241b2;
  }
}

.r-item-btn:hover {
  background: #e0eafb;
  padding: 3px 10px 3px 11px !important;
  border-radius: 20px;
}

//查询条件 end

//弹框样式 start
.el-dialog {
  border-radius: 10px;

  .hr-dotted {
    border: 0;
    border-top: 1px dashed #dcdfe6;
    margin-bottom: 37px;
    margin-left: 14px;
    margin-right: 14px;
  }

  .el-dialog__header {
    padding-top: 34px !important;
    padding-left: 34px !important;

    .el-dialog__title {
      font-size: 24px;
      font-family: Source Han Sans CN, Source Han Sans CN-Regular;
      font-weight: 400;
      text-align: left;
      color: #1a253b;
      line-height: 25px;
    }
  }

  .el-dialog__headerbtn .el-dialog__close {
    width: 16px;
    height: 16px;
    color: #9c959a;
    font-weight: bold;
  }

  .el-dialog__body {
    padding-top: 5px;
  }

  .el-form .el-textarea {
    width: 400px;
  }

  .el-form .el-form-item__content>.el-input {
    width: 400px;
  }

  .el-form .el-form-item__content>.el-select {
    width: 400px;
  }

  .el-form .el-input--small .el-input__inner {
    height: 34px;
    line-height: 34px;
    font-size: 14px;
    font-family: Source Han Sans CN, Source Han Sans CN-Regular;
    font-weight: 400;
    color: #1a253b;
  }

  .el-form .el-textarea .el-textarea__inner {
    font-size: 14px;
    font-family: Source Han Sans CN, Source Han Sans CN-Regular;
    font-weight: 400;
    color: #1a253b;
  }

  .el-form .vue-treeselect {
    width: 400px;
  }

  .el-form .vue-treeselect__input {
    font-size: 14px;
    font-family: Source Han Sans CN, Source Han Sans CN-Regular;
    font-weight: 400;
    color: #1a253b;
  }

  .el-dialog__footer {
    padding-right: 40px !important;
    padding-bottom: 50px !important;
  }

  .el-form .el-form-item {
    margin-bottom: 30px;
  }

  .dialog-add-btn {
    width: 20px;
    height: 20px;
    margin: 0 10px 0 0;
  }

  .dialog-edit-btn {
    width: 20px;
    height: 20px;
    margin: 0 10px 0 0;
  }

  .dialog-view-btn {
    width: 20px;
    height: 20px;
    margin: 0 10px 0 0;
  }

  .cancel-btn {
    min-width: 80px;
    height: 34px;
    background: #f5f5f5;
    border: 1px solid #dcdfe6;
    border-radius: 5px;
    box-shadow: 1px 0px 2px 0px rgba(54, 94, 143, 0.2);
    font-size: 14px;
    font-family: Source Han Sans CN, Source Han Sans CN-Regular;
    font-weight: 400;
    color: #1a253b;
  }

  .save-btn {
    min-width: 80px;
    height: 34px;
    background: #07bf84;
    border-radius: 5px;
    font-size: 14px;
    font-family: Source Han Sans CN, Source Han Sans CN-Regular;
    font-weight: 400;
    color: #ffffff;
    margin-left: 17px;
    border: none;
  }

  .pagination-container {
    margin-top: 30px;
    background: #ffffff !important;
  }
}

//弹框样式 end
.el-tabs--card>.el-tabs__header {
  background-color: #ffffff;
}

.el-pagination.is-background .el-pager li:not(.disabled).active {
  background: #0241b2;
  border-radius: 2px;
}

.el-pagination {
  font-size: 14px;
  font-family: Source Han Sans CN, Source Han Sans CN-Light;
  font-weight: 300;
  color: #43425d;
  line-height: 12px;
  letter-spacing: 0.42px;
}

.w-full {
  width: 100% !important;
}

.w-auto {
  width: auto !important;
}

//滚动条样式修改
::-webkit-scrollbar {
  background-color: #ffffff;
  width: 8px;
  height: 8px;
  border-radius: 4px !important;
}

::-webkit-scrollbar-thumb {
  background-color: #d4d4d4 !important;
  border-radius: 4px;
}

::-webkit-scrollbar-track {
  background-color: #ffffff !important;
  background: #ffffff !important;
  border-radius: 4px !important;
}

#tags-view-container .is-horizontal {
  top: 33px;
}

.el-popover {
  width: 400px;
}

//表格样式 start
.userexam {
  margin: 0 auto;
  margin-top: 20px;
  // background-color: white;
}

.table-exam {
  padding-left: 10px;
  padding-right: 10px;
  margin-right: 20px;
  height: 200px
}

.table-exam .answer-card {
  position: fixed;
  background-color: #ffffff;
  padding: 5px;
}

.table-exam .footer {
  margin-top: 10px;
  height: 28px;
}

.table-exam table {
  background: gray;
}

.table-exam table td {
  background: #fff;
  width: 36px;
  height: 36px;
  padding: 2px;
  text-align: center;
  font-size: 12px;
  cursor: pointer;
  font-family: "微软雅黑", "黑体", "宋体";
}

.item-group {
  padding-top: 10px;
  margin-left: 10px;
}

.item-title {
  padding-top: 10px;
  font-size: 13px;
  font-weight: bold;
  margin-left: 10px;
}

.item-qs {
  padding-top: 5px;
  margin-left: 20px;
}

.item-hr {
  width: 100%;
  height: 1px;
  border-bottom: 1px solid #ebebeb;
  padding-top: 10px;
  padding-bottom: 5px;
}

.nav-num {
  height: 32px;
  line-height: 32px;
}

.nav-num-oper {
  background-color: #00a2e2;
  color: white;
}

.current {
  background-color: gray;
  color: white;
}

.qs-title {
  width: 45px;
  height: 28px;
  line-height: 28px;
  float: left;
  color: white;
  margin: 1px;
  font-size: 12px;
  text-align: center;
}

//表格样式end

.qr-img {
  border: 3px solid #000000;
  padding: 5px;
}

[class^=el-icon-] {
  margin-right: 3px;
}

[class*=el-icon-]+span {
  margin-left: 5px !important;
}